﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

using Microsoft.Practices.Composite.Presentation.Events;

namespace DanielVaughan.Calcium.Gui
{
	class UIElementStateChangedEvent : CompositePresentationEvent<ViewStateChangedEventArgs>
	{
		/* Intentionally left blank. */
	}

	internal enum UIElementState
	{
		Loaded, Unloaded, GotFocus, LostFocus
	}

	class ViewStateChangedEventArgs
	{
		public UIElement UIElement { get; set; }
		public UIElementState UIElementState { get; set; }

		public ViewStateChangedEventArgs(UIElement uiElement, UIElementState uiElementState)
		{
			UIElement = uiElement;
			UIElementState = uiElementState;
		}

		public override string ToString()
		{
			return UIElement + " " + UIElementState;
		}
	}
}
